package cn.dapeng.designPatterns.mediator.t1;

/**
 * 具体同事类
 *
 * @author spikeCong
 * @date 2022/10/21
 **/
public class ConcreteColleagueB extends Colleague {
    public ConcreteColleagueB(Mediator mediator) {
        super(mediator);
    }

    @Override
    public void exec(String key) {
        System.out.println("=====在B同事中,通过中介者执行!");
        getMediator().apply(key);
    }
}
